package com.ak.server.platform.mapper;

import com.ak.common.entity.system.Datasource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DatasourceMapper extends BaseMapper<Datasource> {

    /**
     * 查询数据源列表
     * @param page
     * @param datasource 数据源
     * @return 数据源集合
     */
    IPage<Datasource> selectDatasourceList(Page page, @Param("datasource") Datasource datasource);

}
